import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    // 默认头像
    userPhoto:
      'https://www.baidu.com/link?url=-pd8WC1dA6sjFSqB-Hj7uICth1tmrq07W3dOm1YZZz3_6DSiYhfi0MaNOaf8IuYhmL3RYE7P0XcgJoSbtiiHV9PWKNbdLaL93T3gFFXGenY7HCFHurLpP7SVHu3rtqhnlCI67aIgnzNt2gCdFJxQBW7tRbbsdbvXKit_Ddhur5sdq3MnO1G1bH0QP1v4_hcsgyUzTSKON6muntOmMiKUCFrUZFOOlMbJy3n8-XCJjmMwxeHHhJdWwLpZ16s9Qywzt3S1rXAPhoH7SpsvXh3JkCNU_giYjqJCaD-dEOCMjBKfjgaieykNk7nGTSOsGEEMoXC3pg5x5PKB5JgmZMNS9qWAg0HnEM8Fe1WZzqmSk1E5ioKI0TA5i9An7jHykaVkZzB5gXgsPVIlNkJzR_lPDJQvEv_rrJLEnWg_0NHVGZi99yAoo-pZVY45rZWd9nTXxRStTF6J_-9TW5grKktMCR5FEZbQVHayQaTBPXX6SinfTFnwsgQwgAUHRgHLZ2PFM7ocuyrgPYUIacZydQsP3TVZXRCl-Wu203hKLfXg0Hgrk6oeonADy-dabG39idKHfgtgJbVMVtZjcgihkYWEFhxzsN8XCVVOJQUW3xDaNjsdwj5Xu7kSGGCIk6-wGgysfcK9xl4TXA-eg6zHD4Pkhnngtaztl9bET9E4_sfayQTsb4cJ1PVcWqLY5Hx0MrSX&wd=&eqid=960704bf000e14c80000000662551e0f'
  },
  getters: {},
  mutations: {
    // 编码风格,mutations最好大写(区分)
    SET_USERPHOTO(state, value) {
      state.userPhoto = value
    }
  },
  actions: {},
  modules: {}
})
